#include <iostream>
#include <fstream>
#include <string>
using namespace std;

int main(){
	ifstream ifs("/etc/passwd");
	string str;
	if(ifs.is_open()){
		while(getline(ifs, str)){
			cout << str << endl;
		}
		ifs.close();
	}else{
		cerr << "can not open file..." << endl;
	}
	return 0;
}
